package com.deyuanyun.pic.ae.enumeration;

/**
 * 查询详情 枚举
 *
 * @author huanglw
 * @date  2016-11-10
 *
 * History: [修改人][时间][修改描述]
 */
public enum FindTypeEnum {

    edit("编辑查询"),
    show("展示查询");

    private String label;

    FindTypeEnum(String label){
        this.label = label;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public static String getLabel(String code){
        FindTypeEnum[] yesOrNoEnums = FindTypeEnum.values();
        for (int i = 0; i < yesOrNoEnums.length; i++) {
            if (yesOrNoEnums[i].toString().equals(code)) {
                return yesOrNoEnums[i].getLabel();
            }
        }
        return null;
    }
}
